using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace TznxStart
{
    public partial class SmartDialog : DevComponents.DotNetBar.Office2007RibbonForm
    {
        public SmartDialog()
        {
            InitializeComponent();
        }

        private void buttonX1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(System.Configuration.ConfigurationManager.AppSettings["Caiji"].ToString());
        }
        private void buttonX2_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(System.Configuration.ConfigurationManager.AppSettings["BaoGao"].ToString());
        }

        private void buttonX1_MouseLeave(object sender, EventArgs e)
        {
            this.button1.BackgroundImage = global::TznxStart.Properties.Resources.button1_1;
            this.button1.Cursor = System.Windows.Forms.Cursors.Default;
        }

        private void buttonX1_MouseMove(object sender, MouseEventArgs e)
        {
            this.button1.BackgroundImage = global::TznxStart.Properties.Resources.button1_2;
            this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
        }

        private void buttonX2_MouseLeave(object sender, EventArgs e)
        {
            this.button2.BackgroundImage = global::TznxStart.Properties.Resources.button2_1;
            this.button2.Cursor = System.Windows.Forms.Cursors.Default;
        }

        private void buttonX2_MouseMove(object sender, MouseEventArgs e)
        {
            this.button2.BackgroundImage = global::TznxStart.Properties.Resources.button2_2;
            this.button2.Cursor = System.Windows.Forms.Cursors.Hand;
        }

        private void SmartDialog_Load(object sender, EventArgs e)
        {
            this.Width = Screen.PrimaryScreen.Bounds.Width;
            this.Height = Screen.PrimaryScreen.Bounds.Height;

            //this.TopMost = true;
            this.WindowState = FormWindowState.Maximized;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

            this.Hide();
            this.Show();
        }
    }
}